package com.zengguang.testkaoshi.tool;

/*
* 返回值的格式内容
* */
public class ResponseMessage<T> {
    private String respCode;
    private String respMsg;
    private T date;
    private boolean ok;

    public ResponseMessage(String respCode, String respMsg) {
        this.respCode = respCode;
        this.respMsg = respMsg;
    }

    public ResponseMessage(String respCode, String respMsg, boolean ok) {
        this.respCode = respCode;
        this.respMsg = respMsg;
        this.ok = ok;
    }

    public ResponseMessage(String respCode, String respMsg, T date, boolean ok) {
        this.respCode = respCode;
        this.respMsg = respMsg;
        this.date = date;
        this.ok = ok;
    }

    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public String getRespMsg() {
        return respMsg;
    }

    public void setRespMsg(String respMsg) {
        this.respMsg = respMsg;
    }

    public T getDate() {
        return date;
    }

    public void setDate(T date) {
        this.date = date;
    }

    public boolean isOk() {
        return ok;
    }

    public void setOk(boolean ok) {
        this.ok = ok;
    }


}
